package com.small.nacos.naming.consistency;

import com.alibaba.nacos.api.exception.NacosException;
import org.springframework.stereotype.Service;

/**
 * @Author zhoujin
 * @Date 2022/10/29 12:32
 */
@Service("consistencyDelegate")
public interface ConsistencyService {

    void put(String key, Object value) throws NacosException;

    void remove(String key) throws NacosException;

    Datum get(String key) throws NacosException;

    void listen(String key, RecordListener listener) throws NacosException;

    void unListen(String key, RecordListener listener) throws NacosException;
}
